package com.aptech.model;

import java.sql.Timestamp;

/**
 * Email entity. @author MyEclipse Persistence Tools
 */

public class Email implements java.io.Serializable {

	// Fields
	
	private Long id;
	private Userprofile userprofileByTouserid;
	private Userprofile userprofileByFromuserid;
	private String emailaddress;
	private String accessory;
	private String emailname;
	private String state;
	private Timestamp sendtime;
	private String isrubbish;

	// Constructors

	/** default constructor */
	public Email() {
	}

	/** minimal constructor */
	public Email(Userprofile userprofileByTouserid,
			Userprofile userprofileByFromuserid, String emailname,
			String state, String isrubbish) {
		this.userprofileByTouserid = userprofileByTouserid;
		this.userprofileByFromuserid = userprofileByFromuserid;
		this.emailname = emailname;
		this.state = state;
		this.isrubbish = isrubbish;
	}

	/** full constructor */
	public Email(Userprofile userprofileByTouserid,
			Userprofile userprofileByFromuserid, String emailaddress,
			String accessory, String emailname, String state,
			Timestamp sendtime, String isrubbish) {
		this.userprofileByTouserid = userprofileByTouserid;
		this.userprofileByFromuserid = userprofileByFromuserid;
		this.emailaddress = emailaddress;
		this.accessory = accessory;
		this.emailname = emailname;
		this.state = state;
		this.sendtime = sendtime;
		this.isrubbish = isrubbish;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Userprofile getUserprofileByTouserid() {
		return this.userprofileByTouserid;
	}

	public void setUserprofileByTouserid(Userprofile userprofileByTouserid) {
		this.userprofileByTouserid = userprofileByTouserid;
	}

	public Userprofile getUserprofileByFromuserid() {
		return this.userprofileByFromuserid;
	}

	public void setUserprofileByFromuserid(Userprofile userprofileByFromuserid) {
		this.userprofileByFromuserid = userprofileByFromuserid;
	}

	public String getEmailaddress() {
		return this.emailaddress;
	}

	public void setEmailaddress(String emailaddress) {
		this.emailaddress = emailaddress;
	}

	public String getAccessory() {
		return this.accessory;
	}

	public void setAccessory(String accessory) {
		this.accessory = accessory;
	}

	public String getEmailname() {
		return this.emailname;
	}

	public void setEmailname(String emailname) {
		this.emailname = emailname;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Timestamp getSendtime() {
		return this.sendtime;
	}

	public void setSendtime(Timestamp sendtime) {
		this.sendtime = sendtime;
	}

	public String getIsrubbish() {
		return this.isrubbish;
	}

	public void setIsrubbish(String isrubbish) {
		this.isrubbish = isrubbish;
	}

}